package com.huahai.entity;

import lombok.Data;

import java.io.Serializable;

@Data
public class User implements Serializable {
    /**
     * 主键
     */
    private Integer id;
    /**
     *用户
     */
    private String username;
    /**
     *密码
     */
    private String password;
    /**
     *手机号
     */
    private String telephone;

    public User(Integer id, String username, String password) {
        this.id = id;
        this.username = username;
        this.password = password;
    }

    public User(){}
    @Override
    public String toString() {
        return "User{" +
                "uid=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", telephone='" + telephone + '\'' +
                '}';
    }
}
